<template>
  <div class="header">
    <MyHeader></MyHeader>
  </div>
  <div class="nav">
    <MyNb></MyNb>
  </div>
  <div class="main">
    <router-view></router-view>
  </div>
  <div class="footer">

  </div>
</template>

<script>
import MyHeader from "../components/MyHeader.vue";
import MyNb from '../components/MyNb.vue'
import request from "../networkRequest/index.js";
export default {
  name: "myContainer",

  mounted() {
    request({
      url: 'getUserInfo',
      method: 'post',
      headers: {
        'Authorization': 'Bearer ' + localStorage.getItem('myToken')
      }
    }).then(res => {
      console.log(res.data)
    })
  },

  components: {
    MyHeader,
    MyNb
  }
}
</script>

<style scoped>
.main{
  background: white;
  background:#ffffff;
}
.footer{
  height: 60px;
  background: #475669 ;
}
</style>